package com.lzx.shop.dataobject;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import lombok.Data;

/**
 * order
 * @author 
 */
@ApiModel(value="com.lzx.shop.dataobject.OrderDO")
@Data
@TableName("ordert")
public class OrderDO implements Serializable {
    /**
     * 主键
     */
    @ApiModelProperty(value="主键")
    private String id;

    /**
     * 订单id
     */
    @ApiModelProperty(value="订单id")
    private String orderNumber;

    /**
     * 用户id
     */
    @ApiModelProperty(value="用户id")
    private String userId;

    @TableField(exist = false)
    private UserDO userDO;

    /**
     * 商品id
     */
    @ApiModelProperty(value="商品id")
    private String productId;

    @TableField(exist = false)
    private ProductDO productDO;

    /**
     * 订单总价
     */
    @ApiModelProperty(value="订单总价")
    private Double totalPrice;

    /**
     * 订单状态
     */
    @ApiModelProperty(value="订单状态")
    private String status;

    @ApiModelProperty(value="备注信息")
    private String extendInfo;

    @ApiModelProperty(value="收件地址id")
    private String addressId;

    /**
     * 创建时间
     */
    @ApiModelProperty(value="创建时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtCreated;



    /**
     * 修改时间
     */
    @ApiModelProperty(value="修改时间")
    private LocalDateTime gmtModified;

    private static final long serialVersionUID = 1L;
}